<?php
$table_name = "qt_skill_fe";
$title_name = "前端技术";
include($_SERVER['DOCUMENT_ROOT'] . "/admin/view/skill/skillList.php");
?>

<script>
    function add() {
        $('#addData').attr("src", "/admin/view/skill/addData.php?type=fe");
        $('#myModal').modal({});
    }
    function closeModal() {
        $('#myModal').modal('hide');
        setTimeout(function () {
            loadMain("/admin/view/skill/fe/index.php");
        }, 100);
    }
    $(function () {
        $("td button").click(function () {
            var className = $(this).children().prop("className");
            var status = className.split("-")[1];
            $.post("/admin/view/skill/fe/edit.php/" + status,
                {"id": $(this).attr("art-id")},
                function (data) {
                    if (data == 1)
                        loadMain("/admin/view/skill/fe/index.php");
                }
            );
        });
    });
</script>